import { hasAtomicPermission } from "@/utils/auth";

export function hasRolePermission() {
  const hasAdd = hasAtomicPermission("ZJXCA00260");
  const hasUpdate = hasAtomicPermission("ZJXCA00261");
  const hasDelete = hasAtomicPermission("ZJXCA00262");
  const hasSelect = hasAtomicPermission("ZJXCA00263");
  // 分配角色权限
  const hasMalloc = hasAtomicPermission("ZJXCA00264");

  return {
    hasAdd,
    hasUpdate,
    hasDelete,
    hasSelect,
    hasMalloc
  };
}
